package com.mengshu.token.utils;

import org.springframework.boot.convert.DurationStyle;

public class TimeUtils {

    public static long getSeconds(String timeout) {
        return DurationStyle.detectAndParse(timeout).getSeconds();
    }
}
